package com.service.screenReception.dto;

import lombok.Data;

import java.util.Random;

@Data
public class AppUserInfoDto {
    private String id;
    private String siteId;
    //体验-差的终端个数。该字段暂未实现，始终为0。
    private Integer exprWorse;
    //体验一般
    private Integer exprBad;
    //体验良好
    private Integer exprGood;
    //体验优
    private Integer exprBetter;
    //速度-慢的终端个数
    private Integer speedBad;
    //速度中
    private Integer speedGood;
    //速度快
    private Integer speedBetter;
    //在线一小时的终端数。
    private Integer oneHour;
    private Integer oneToTwoHour;
    private Integer twoToFourHour;
    private Integer fourToSixHour;
    private Integer sixToEightHour;
    //在线八小时以上的终端数。
    private Integer eightHour;

    public String getId() {
        Random random = new Random();
        Integer number = random.nextInt(900000) + 100000;
        return System.currentTimeMillis() + String.valueOf(number);
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "AppUserInfoDto{" +
                "siteId='" + siteId + '\'' +
                ", exprWorse=" + exprWorse +
                ", exprBad=" + exprBad +
                ", exprGood=" + exprGood +
                ", exprBetter=" + exprBetter +
                ", speedBad=" + speedBad +
                ", speedGood=" + speedGood +
                ", speedBetter=" + speedBetter +
                ", oneHour=" + oneHour +
                ", oneToTwoHour=" + oneToTwoHour +
                ", twoToFourHour=" + twoToFourHour +
                ", fourToSixHour=" + fourToSixHour +
                ", sixToEightHour=" + sixToEightHour +
                ", eightHour=" + eightHour +
                '}';
    }
}
